home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / Buttons.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.8 KB  |  79 lines  |  [TEXT/CWIE]

  1. /* Buttons.h */
  2.  
  3. #pragma once
  4.  
  5. #include "AMWindow.h"
  6.  
  7. struct AMDoc;
  8. struct DDocData;
  9. struct EverythingEngine;
  10.  
  11. //----------
  12. struct Buttons {
  13.     AMWindow        super;
  14.  
  15.     DDocData*        mData;
  16.     ControlHandle    mCapInvisibleLabel;
  17.     ControlHandle    mInvisibleHandle;
  18.     ControlHandle    mStandardHandle;
  19.     ControlHandle    mDefaultHandle;
  20.     ControlHandle    mBevelHandle;
  21.     ControlHandle    mButtonHandle;
  22.     ControlHandle    mNextHandle;
  23.     ControlHandle    mNext2Handle;
  24.     ControlHandle    mGraphicHandle;
  25.     ControlHandle    mCapcicnLabel;
  26.     ControlHandle    mRightHandle;
  27.     ControlHandle    mCapicl8Label;
  28.     ControlHandle    mLightHandle;
  29.     ControlHandle    mCapICNLabel;
  30.     ControlHandle    mRight2Handle;
  31.     ControlHandle    mCapicl9Label;
  32.     ControlHandle    mButton2Handle;
  33.     ControlHandle    mRight3Handle;
  34.     ControlHandle    mCapPICTLabel;
  35.     ControlHandle    mRect3DHandle;
  36.     ControlHandle    mLeftIconHandle;
  37.     ControlHandle    mRightIconHandle;
  38.     ControlHandle    mTitledPICTHandle;
  39. };
  40. typedef struct Buttons Buttons;
  41.  
  42. //----------
  43. Buttons*        NewButtons ();
  44. void    DeleteButtons        (Buttons*        window);
  45.  
  46. //----------
  47. //static:
  48. void    Buttons_Create    (AMDoc*            inDoc,
  49.                              DDocData*        inData);
  50.  
  51. //public:
  52. void    Buttons_Init        (Buttons*    self);
  53. void    Buttons_Free        (Buttons*    self);
  54.  
  55. void    Buttons_Open        (Buttons*    self,
  56.                              AMDoc*            inDoc,
  57.                              DDocData*        inData);
  58. void    Buttons_Close    (Buttons*    self);
  59.  
  60. void    Buttons_Track        (Buttons*    self,
  61.                                  ControlHandle    whichControl,
  62.                                   short             whichPart,
  63.                                  Point            where);
  64. void    Buttons_MouseIn        (Buttons*    self,
  65.                                  Point            where,
  66.                                  short            modifiers);
  67. void    Buttons_TypeIn        (Buttons*    self,
  68.                                  char            ch);
  69. void    Buttons_ExitCurField    (Buttons*    self);
  70. void    Buttons_DataChanged    (Buttons*    self,
  71.                                  long            inDataID);
  72. void    Buttons_Resize        (Buttons*    self);
  73. void    Buttons_Scroll        (Buttons*    self,
  74.                                  short            newValue,
  75.                                  short            oldValue);
  76.  
  77. Boolean        Buttons_DoCommand    (Buttons*    self,
  78.                                      long            inCommand);
  79.